<!--
 * @Autor: dingxiaolin
 * @Date: 2021-06-02 13:12:45
 * @LastEditors: dingxiaolin
 * @LastEditTime: 2021-07-03 17:22:23
-->
<template>
  <config-provider :locale="zhCN">
    <router-view v-slot="{ Component }">
      <component :is="Component" :class="[$store.state.app.weak ? 'week-mode' : '']" />
    </router-view>
  </config-provider>
</template>

<script lang="ts">
import { defineComponent, computed, ref, onMounted, onUnmounted } from 'vue'
import zhCN from 'ant-design-vue/es/locale/zh_CN'
import 'moment/dist/locale/zh-cn'
import { ConfigProvider } from 'ant-design-vue'
import { LockScreen } from '@/components/lockscreen'
import { useStore } from '@/store'
import { useRoute } from 'vue-router'

export default defineComponent({
  name: 'App',
  components: { ConfigProvider, LockScreen },
  setup() {
    onMounted(() => {})

    onUnmounted(() => {})

    return {
      zhCN
      //   isLock
    }
  }
})
</script>

<style lang="scss">
// @import 'styles/global.scss';
// @import 'styles/common.scss';
// @import 'styles/override.scss';

.slide-up-enter-active,
.slide-up-leave-active {
  transition: transform 0.35s ease-in;
}

.slide-up-enter-form,
.slide-up-leave-to {
  transform: translateY(-100%);
}
.week-mode {
  filter: invert(80%);
}
</style>
